
<nz-layout>
  <nz-sider [nzWidth]="300">
      <nz-divider nzText='【条件列表】' nzOrientation="left" style="color:rgb(238, 85, 85);font-weight: bold;font-size: 13px;"></nz-divider>
      <nz-input-group [nzSuffix]="suffixIcon">
        <input type="text" nz-input  placeholder="按岗位名称筛选..." [(ngModel)]="searchValue" />
      </nz-input-group>
      <ng-template #suffixIcon>
        <i nz-icon nzType="search"></i>
      </ng-template>
      <div [ngStyle]="style">
      <nz-tree [nzSearchValue]="searchValue" [nzData]="nodes" nzShowLine nzExpandAll nzHideUnMatched (nzClick)="nzEvent($event)" nzAsyncData="true"> </nz-tree>
      </div>
  </nz-sider>
  <nz-content>
    <nz-divider nzText='【条件详情】' nzOrientation="left" style="color:rgb(238, 85, 85);font-weight: bold;font-size: 13px;"></nz-divider>
    
        <sf #sf mode="edit" [schema]="editSchema" [button]="null" >
        </sf>
        <div  style="text-align:right;padding-right:5px;">
          <button nz-button nzType="primary" (click)="addYh()"><i nz-icon nzType="menu" nzTheme="outline"></i>条件添加</button>
          <button nz-button nzType="primary" [disabled]="!DAD086"  (click)="add()"><i nz-icon nzType="plus"></i>创建标签</button>
          <button nz-button #btnSave (click)="save()"><i nz-icon nzType="save"></i>保存修改</button>
          <button nz-button nz-popconfirm
          nzPopconfirmTitle="是否删除?"
          nzPopconfirmPlacement="top" (nzOnConfirm)="confirm()"
          (nzOnCancel)="cancel()" nzType="danger" [disabled]="!DAD086"><i nz-icon nzType="delete"></i>删除</button>
        </div>
     
    <nz-divider nzText='【标签列表】' nzOrientation="left" style="color:rgb(238, 85, 85);font-weight: bold;font-size: 13px;"></nz-divider>
    <nz-card style="margin-top: 5;">
      <lb-grid #st [columns]="yhColumns" [sname]="sname.label" ></lb-grid>
    </nz-card>
  </nz-content>
</nz-layout>
<nz-modal
      [(nzVisible)]="isVisible"
      [nzFooter]="null"
      (nzOnCancel)="handleCancel()"
    >
  <sf #addSf mode="edit" [schema]="addSchema"  [button]="null"  [formData]="formData"></sf>
  <div class="modal-footer">
    <button  nz-button type="submit" [nzType]="'primary'" (click)="saveAdd(addSf.value)" [disabled]="!addSf.valid">
    <i nz-icon nzType="save"></i>保 存
    </button>
  </div>
</nz-modal>




<nz-modal [(nzVisible)]="isYhVisible" nzTitle="条件新增" (nzOnCancel)="handleYhCancel()" (nzOnOk)="handleYhOk()" [nzOkText]="'保存'" [nzWidth]=400>
  <sf #yhsf button="none"  [schema]="newYhSchema"></sf>  
</nz-modal>